package com.yuanchu.marketing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanchu.common.utils.PageResult;
import com.yuanchu.marketing.dto.CouponParamsDto;
import com.yuanchu.marketing.dto.CouponReceiveDto;
import com.yuanchu.marketing.entity.YoshopCouponEntity;
import com.yuanchu.marketing.entity.YoshopUserCouponEntity;

import java.util.List;

/**
 * 优惠券记录表
 *
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 20:57:23
 */
public interface YoshopCouponService extends IService<YoshopCouponEntity> {



    /**
     * 根据优惠券id查询优惠券信息
     * @param couponId
     * @return
     */
    YoshopCouponEntity queryCouponById(Integer couponId);

    /**
     * 查询优惠券列表
     * @return
     */
    List<YoshopCouponEntity> queryCouponList(Integer userId);

    /**
     * 查询优惠券列表
     * @return
     */
    PageResult<YoshopCouponEntity> queryCouponAll(Integer page, String search);

    /**
     * 修改优惠券
     * @param params
     */
    void editCoupon(CouponParamsDto params);

    /**
     *  添加优惠券
     * @param params
     */
    void addCoupon(CouponParamsDto params);

    /**
     * 查询优惠券列表
     *
     * @param params
     * @return
     */
    PageResult<YoshopUserCouponEntity> queryCouponReceive(CouponReceiveDto params);
}

